﻿using ExampleService.VolcanoEngine.SDK.Dto;
using ExampleService.VolcanoEngine.SDK.Provider;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace ExampleService.VolcanoEngine.SDK.Extensions
{
    public static class VolcanoSDKExtension
    {
        /// <summary>
        /// 注册契约接口 
        /// </summary>
        /// <param name="services"></param>
        /// <param name="baseUri"></param>
        public static void AddVolcanoSDK(this IServiceCollection services, IConfiguration configuration)
        {
            services.Configure<VolcanoOptions>(configuration);
            services.AddSingleton<VolcanoEngine>();
            services.AddSingleton<HTTPClient>();
            services.AddScoped<TranslationTextService>();
        }
    }
}
